import React from 'react'
import {useEffect} from "react"
import {connect} from "react-redux"
import * as action from "../action"
import {bindActionCreators} from "redux"
function Shophome(props) {
  useEffect(()=>{
      console.log(props);
      props.getlist()
  },[])
  return (
    <div>shophome</div>
  )
}
let mapstateToprops = (state)=>{
    return {
        ...state.shopreducer
    }
}
let mapDispatchToprops = (dispatch)=>bindActionCreators(action,dispatch)

export default connect(mapstateToprops,mapDispatchToprops)(Shophome) 